
public class Practice8_1_1  {
	public static void main(String[] args){
		PrintString_1 ps1 = new PrintString_1("Thread1!");
		PrintString_1 ps2 = new PrintString_1("Thread2!");
		PrintString_1 ps3 = new PrintString_1("Thread3!");
		PrintString_1 ps4 = new PrintString_1("Thread4!");
		PrintString_1 ps5 = new PrintString_1("Thread5!");
		ps1.start();
		ps2.start();
		ps3.start();
		ps4.start();
		ps5.start();
	}
}

class PrintString_1 extends Thread{
	private String str;
	public PrintString_1(String str) {
		this.str = str;
	}
	public void run() {
		for (int i =0; i<3; i++){
			System.out.print(str+" ");
		}
	}
}
